package com.Maybe.book.model;

import lombok.Data;

@Data
public class PageRequest {
    //@Data注解提供无参构造方法
    private int currentPage=1;//当前页
    private int pageSize=10;//每页的记录条数
    private Integer offset;

    public Integer getOffset() {
        return (currentPage-1)*pageSize;
    }
}
